package uk.co.accolade.clash.util;

import java.util.Enumeration;

public abstract class Each<T> {

    public  static<T> void each( Enumeration<T> items, Each<T> iterator ) {
        while( items.hasMoreElements() ) {
            iterator.iterate(items.nextElement() );
        }
    }

    public abstract void iterate( T node );
}
